using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace Risiko.State
{
  public struct TerritoryReference
  {
    public int continentID;
    public int territoryID;
  }


  public struct Territory
  {
    // LOGIC DATA
    public int continentID;
    public int territoryID;
    public string name;
    public Vector2 position;
    public PlayerList owner;
    public bool hasOwner;
    public TerritoryReference[] neighbors;
    public int armies;

    // RENDER DATA
    //public bool isBeingSelected;
    //public float selectionTimer;
    public bool isSelected;

    public TerritoryReference ToRef { get { return new TerritoryReference() { continentID = continentID, territoryID = territoryID }; } }
    public void SetOwner(PlayerList owner) { this.owner = owner; hasOwner = true; }
    public void AddArmies(int armiesNum) { this.armies += armiesNum; }

  }

}
